﻿using System;
using System.Collections.Generic;
using Nett;

namespace ConsoleApplication1
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            using (var sr = new System.IO.StreamReader("commands.toml"))
            {
                var str = sr.ReadToEnd();

                var parsed = Toml.ReadString(str);

                var sss = parsed.Get<Dictionary<string,Object>>("NameColor");

                if (sss.TryGetValue("ServerName",out Object s))
                {
                    Console.WriteLine(s);
                }
                Console.WriteLine(sss);
            }
        }
    }
}